from system.file_system import File_system
import unittest
from tools import commandtools


# class MyTest(unittest.TestCase):
#     def setUp(self) -> None:
#         pass
#
#     def tearDown(self) -> None:
#         pass
#
#     # 测试文件系统启动
#     def test_start(self):
#         file_system = File_system()
#         file_system.run()
#
#     def test_process_command(self):
#         # command = input("command: ")
#         command = "cd aaaa bbbb"
#         result = commandtools.process_command(command)
#         self.assertEqual(result, ("cd", ["aaaa", "bbbb"]))
#
#         command = "\n"
#         result = commandtools.process_command(command)
#         self.assertEqual(result, "\n")
#
#     def test_dir(self):
#         file_system = File_system()
#         file_system.dir()


if __name__ == '__main__':
    file_system = File_system()
    file_system.run()
    # content = ""
    # tmp = ""
    # print("input：")
    # while tmp != "%end":
    #     tmp = input()
    #     content += tmp + "\n"
    # print(content)
